<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrCarDriver.ascx.cs"
    Inherits="controls_usrCarDriver" %>
<%@ Register Src="usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc10" %>
<%@ Register Src="usrJobNature.ascx" TagName="usrJobNature" TagPrefix="uc9" %>
<%@ Register Src="usrMaritalStatus.ascx" TagName="usrMaritalStatus" TagPrefix="uc7" %>
<%@ Register Src="usrOccupation.ascx" TagName="usrOccupation" TagPrefix="uc8" %>
<%@ Register Src="usrDate.ascx" TagName="usrDate" TagPrefix="uc1" %>
<%@ Register Src="usrSalutation.ascx" TagName="usrSalutation" TagPrefix="uc2" %>
<%@ Register Src="usrGender.ascx" TagName="usrGender" TagPrefix="uc3" %>
<%@ Register Src="usrIdType.ascx" TagName="usrIdType" TagPrefix="uc4" %>
<%@ Register Src="usrNationality.ascx" TagName="usrNationality" TagPrefix="uc5" %>
<%@ Register Src="usrRelationship.ascx" TagName="usrRelationship" TagPrefix="uc6" %>

<div class="form_subbox">
    <h3><asp:Label ID="lblDriverNo" runat="server" Text="Driver No"></asp:Label>
        <asp:Label ID="lblDriverId" Visible="false" runat="server"></asp:Label></h3>
    <div class="row">
        <label class="mand_red">Salutation</label>
        <div class="field">
            <span class="indicator">
                <uc2:usrSalutation ID="ddlSalutation" runat="server" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Surname</label>
        <div class="field">
            <span class="indicator">
                <asp:TextBox ID="txtSurName" runat="server" CssClass="text" MaxLength="50" Width="250px"></asp:TextBox><%--Require surname name.--%>
                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvSurName" runat="server"
                    ControlToValidate="txtSurName" ErrorMessage=""></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revSurName" runat="server"
                    ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$"
                    ControlToValidate="txtSurName" ErrorMessage=""></asp:RegularExpressionValidator>
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label>Given Name</label>
        <div class="field">
            <span class="indicator">
                <asp:TextBox ID="txtGivenName" runat="server" CssClass="text" MaxLength="50" 
                    Width="200px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="revGivenName" runat="server"
                    ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$"
                    ControlToValidate="txtGivenName" ErrorMessage=""></asp:RegularExpressionValidator>
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Date Of Birth</label>
        <div class="field">
            <span class="indicator">
                <uc1:usrDate ID="usrDOB" runat="server" EndYear="2009" StartYear="1945" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Gender</label>
        <div class="field">
            <span class="indicator">
                <uc3:usrGender ID="ddlGender" runat="server" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Marital Status</label>
        <div class="field">
            <span class="indicator">
                <uc7:usrMaritalStatus ID="ddlMaritalStatus" runat="server" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Occupation</label>
        <div class="field">
            <span class="indicator">
                <uc8:usrOccupation ID="ddlOccupation" runat="server" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Job Nature</label>
        <div class="field">
            <span class="indicator">
                <uc9:usrJobNature ID="ddlJobNature" runat="server" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Identification Type</label>
        <div class="field">
            <span class="indicator">
               <uc4:usrIdType ID="ddlIdType" runat="server"></uc4:usrIdType>
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Identification Number</label>
        <div class="field">
            <span class="indicator">
                <uc10:usrIdNumber ID="txtIDNo" runat="server" />
            </span>
        </div>
        <div class="clear"></div>
    </div>
    <div class="row">
        <label class="mand_red">Years of Driving</label>
        <div class="field">
            <span class="indicator">                                
                <asp:DropDownList ID="ddlYersOfDriving" runat="server">
                    <asp:ListItem Selected="True" Value="-1">Select</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                </asp:DropDownList><%--Choose number of driving year in singapore.--%>
                <asp:RequiredFieldValidator ID="rfvDrivingYearSg" runat="server" ControlToValidate="ddlYersOfDriving"
                    CssClass="validationErrorControl" ErrorMessage=""
                    InitialValue="-1"></asp:RequiredFieldValidator>
            </span>
        </div>
        <div class="clear"></div>
    </div>
</div>


